/******************************************************************************
 * 
 *****************************************************************************/

package com.gw.business.statistics.exception.model;

import java.io.IOException;
import java.util.Properties;

/**
 * @author kidy
 * @since 1.0
 * @version 2015年2月10日 kidy
 */
public class EmailModel {
    

    String toEmail = "";// 收件人  
    String fromEmail = "";// 发件人  
    String host = "";// smtp主机  
    String username = "";  
    String password = "";  
    String subject = "";// 邮件主题  
    String content = "";// 邮件正文  
    private Properties properties = new Properties();
    public EmailModel() {  
        try {
            properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("sysConfig.properties"));
            this.host = properties.getProperty("mail.smtp.host");
            this.username = properties.getProperty("mail.sender.username");
            this.password = properties.getProperty("mail.sender.password");
        } catch (IOException e) {
            e.printStackTrace();
        }
        
    }
    
    /**
     * @return 获取 toEmail属性值
     */
    public String getToEmail() {
        return toEmail;
    }
    
    /**
     * @param toEmail 设置 toEmail 属性值为参数值 toEmail
     */
    public void setToEmail(String toEmail) {
        this.toEmail = toEmail;
    }
    
    /**
     * @return 获取 fromEmail属性值
     */
    public String getFromEmail() {
        return fromEmail;
    }
    
    /**
     * @param fromEmail 设置 fromEmail 属性值为参数值 fromEmail
     */
    public void setFromEmail(String fromEmail) {
        this.fromEmail = fromEmail;
    }
    
    /**
     * @return 获取 host属性值
     */
    public String getHost() {
        return host;
    }
    
    /**
     * @param host 设置 host 属性值为参数值 host
     */
    public void setHost(String host) {
        this.host = host;
    }
    
    /**
     * @return 获取 username属性值
     */
    public String getUsername() {
        return username;
    }
    
    /**
     * @param username 设置 username 属性值为参数值 username
     */
    public void setUsername(String username) {
        this.username = username;
    }
    
    /**
     * @return 获取 password属性值
     */
    public String getPassword() {
        return password;
    }
    
    /**
     * @param password 设置 password 属性值为参数值 password
     */
    public void setPassword(String password) {
        this.password = password;
    }
    
    /**
     * @return 获取 subject属性值
     */
    public String getSubject() {
        return subject;
    }
    
    /**
     * @param subject 设置 subject 属性值为参数值 subject
     */
    public void setSubject(String subject) {
        this.subject = subject;
    }
    
    /**
     * @return 获取 content属性值
     */
    public String getContent() {
        return content;
    }
    
    /**
     * @param content 设置 content 属性值为参数值 content
     */
    public void setContent(String content) {
        this.content = content;
    }
    
 
}
